package com.example.demo.webchat.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 配置类
 *
 * @author wuhong-016
 * @version v1.0.0
 * @time: 2021/7/23 10:00
 */
@ToString
@Component
@ConfigurationProperties(prefix = "netty")
@Data
public class NettyConfig {

    /**
     * netty监听的端口
     */
    private int port;
    /**
     * websocket访问路径
     */
    private String path;

}
